class DeviseUser < ActiveRecord::Base

  has_many :blogs, :foreign_key=>"user_id"  #里面填的其实是blogs表的情况，user_id exist in the blogs table!如果不指定，就会默认成为devise_user_id, 那是找不到的！
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

end
